#include <stdio.h>
#include <math.h>
/*Link with -lm*/

float long_divide(long x,long y,int count);

int main()
{
    float ret = long_divide(10240000,247463936,5);
    printf("%f\n",ret);
}

float long_divide(long x,long y,int count)
{
    char str[32] = { 0 };
    long int u,n;
    int i = count;
    char *tmp = str;
    while(i--){
        u = x % y;
        x = u * 10;
        sprintf(tmp++,"%d",(int)(x/y));
        if(u == 0){
            break;
        }
    }
    long ret = atol(str);
    return ret/(double)(pow(10,count));
}
